<form method="post" id="frmFullName" name="frmFullName" action="{$smarty.const.HOST_VFRIEND}account/basicsave" enctype="multipart/form-data">
	<input type="hidden" name="phascode" id="phascode" value="" />
    <input type="hidden" name="ptsave" id="ptsave" value="{$intType}" />
	<div class="editForm">
    	<div class="userInput">
        	<label>Họ:</label>
        	<input type="text" value="{if isset($smarty.session.st_firstname)}{$smarty.session.st_firstname|escape}{else}{$objUser->firstname|escape}{/if}" id="pfirstname" name="pfirstname" maxlength="50" class="text" />	
        </div>
        <div class="userInput">
        	<label>Chữ lót &amp; tên:</label>
        	<input type="text" value="{if isset($smarty.session.st_lastname)}{$smarty.session.st_lastname|escape}{else}{$objUser->lastname|escape}{/if}" id="plastname" name="plastname" maxlength="50" class="text" />	
        </div>
        <div class="userInput">
        	<input type="submit" value="Thay đổi" class="btnSubmit" />
            <input type="button" value="Hủy" class="btnCancel" onclick="javascript:basicClose('{$strView}','{$strEdit}')" />
        </div>
    </div>
</form>
{literal}
<script type="text/javascript" language="javascript">
	$(document).ready(function(){
		$("#frmFullName").validate({				
			errorClass		: "errorMessage",
			errorElement	: "span",
			onfocusout		: false,
			onkeyup			: false,
			rules: {	
				pfirstname:{
					required	: true
				},
				plastname:{
					required	: true
				}
			},
			messages: {	
				pfirstname:{
					required	: firstname_required
				},
				plastname:{
					required	: lastname_required
				}
			},		
			errorPlacement: function(label, element) {			
				var id = element.attr("id");			
				label.insertAfter($("#" + id));			
			},
			submitHandler: function(form) {				
				form.submit();
			}
		});				
	});
</script>
{/literal}